<!--蜜雪点单部分-->
<template>
  <div class="stop_detail">
    <div class="stop_bg">
      <div class="top">
        <div class="top_left" @click="$router.push('/')">
          <van-icon name="arrow-left" color="#fff" size="20" />
        </div>
        <div class="top_right">
          <span>
            <van-icon name="search" color="#fff" size="20" />
          </span>
          <span>
            <van-icon name="star-o" color="#fff" size="20" />
          </span>
          <span>
            <van-icon name="chat-o" color="#fff" size="20" />
          </span>
          <span class="pindan">拼单</span>
          <span>
            <van-icon name="ellipsis" color="#fff" size="20" />
          </span>
        </div>
      </div>
      <div class="banner">
        <img src="../assets/banner.jpg" alt />
      </div>
    </div>
    <div class="shop">
      <div class="stop_top">
        <img src="../assets/mxbc.png" alt />
        <div class="stop_right">
          <h3>蜜雪冰城</h3>
          <div class="stop_list">
            <div class="stop_item">
              <span>评分</span>
              <span>4.8</span>
            </div>
            <div class="stop_item">
              <span>月销</span>
              <span>2000+</span>
            </div>
            <div class="stop_item">
              <span>美团全城送</span>
              <span>约56分钟</span>
            </div>
          </div>
        </div>
      </div>
      <div class="shop_bottom">
        <span>9.17折起</span>
        <span>收藏领2元券</span>
      </div>
      <div class="tip">新店开业，优惠多多！ 适量点单,拒绝浪费!</div>
    </div>
    <div class="list_wrapper">
      <van-tabs v-model="active">
        <van-tab title="点菜">
          <div class="tab1_list">
            <van-sidebar v-model="activeKey">
              <van-sidebar-item :title="item.name" v-for="item in side" :key="item.name"></van-sidebar-item>
            </van-sidebar>
            <div class="tab1_list_content">
              <img src="../assets/banner_1.jpg" alt />
              <div class="card_title">招牌·老板推荐</div>
              <div class="card_list">
                <div class="item" v-for="(item, index) in 1" :key="index">
                  <van-image width="100" height="100" radius="8" :src="require('../assets/mx01.jpg')" />
                  <div class="item_line">
                    <h3>冰鲜柠檬水</h3>
                    <div class="item_line_i">
                      <span>月销量1000+</span>
                      <span> 门店销量第一名</span>
                    </div>
                    <div class="item_o">
                      <span>5起</span>
                      <span class="buy">选规格</span>
                    </div>
                    <div class="price">4到手价</div>
                  </div>
                </div>
                <div class="item" v-for="(item, index) in 1" :key="index">
                  <van-image width="100" height="100" radius="8" :src="require('../assets/mx02.jpg')" />
                  <div class="item_line">
                    <h3>菠萝百香果</h3>
                    <div class="item_line_i">
                      <span>月销量200+</span>
                      <span>10+回头客推荐</span>
                    </div>
                    <div class="item_o">
                      <span>9起</span>
                      <span class="buy">选规格</span>
                    </div>
                    <div class="price">8到手价</div>
                  </div>
                </div>
                <div class="item" v-for="(item, index) in 1" :key="index">
                  <van-image width="100" height="100" radius="8" :src="require('../assets/mx03.jpg')" />
                  <div class="item_line">
                    <h3>糯香柠檬茶</h3>
                    <div class="item_line_i">
                      <span>月销量100+</span>
                      <span>近期100+人已下单</span>
                    </div>
                    <div class="item_o">
                      <span>6起</span>
                      <span class="buy">选规格</span>
                    </div>
                    <div class="price">5到手价</div>
                  </div>
                </div>
                <div class="item" v-for="(item, index) in 1" :key="index">
                  <van-image width="100" height="100" radius="8" :src="require('../assets/mx04.jpg')" />
                  <div class="item_line">
                    <h3>满杯百香果</h3>
                    <div class="item_line_i">
                      <span>月销量200+</span>
                      <span>20+回头客推荐</span>
                    </div>
                    <div class="item_o">
                      <span>8起</span>
                      <span class="buy">选规格</span>
                    </div>
                    <div class="price">7到手价</div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </van-tab>
        <van-tab title="超优惠">
          <div class="card_list_wrapper">
            <div class="item" v-for="(item, index) in 1" :key="index">
              <van-image width="100" height="100" radius="8" :src="require('../assets/mx06.jpg')" />
              <div class="item_line">
                <h3>冰爽果茶4人餐</h3>
                <div class="item_line_i">
                  <span>月销量12</span>
                  <span>4杯</span>
                  <span>椰果</span>
                </div>
                <div class="item_o">
                  <span>28起</span>
                  <span class="buy">选规格</span>
                </div>
                <div class="price">25到手价</div>
              </div>
            </div>
            <div class="item" v-for="(item, index) in 1" :key="index">
              <van-image width="100" height="100" radius="8" :src="require('../assets/mx07.jpg')" />
              <div class="item_line">
                <h3>冰爽炸弹4人餐</h3>
                <div class="item_line_i">
                  <span>月销量8</span>
                  <span>4杯</span>
                  <span>椰果</span>
                </div>
                <div class="item_o">
                  <span>29起</span>
                  <span class="buy">选规格</span>
                </div>
                <div class="price">26到手价</div>
              </div>
            </div>
            <div class="item" v-for="(item, index) in 1" :key="index">
              <van-image width="100" height="100" radius="8" :src="require('../assets/mx08.jpg')" />
              <div class="item_line">
                <h3>热卖三件组</h3>
                <div class="item_line_i">
                  <span>月销量20</span>
                  <span>3杯</span>
                  <span>柠檬片</span>
                </div>
                <div class="item_o">
                  <span>6起</span>
                  <span class="buy">选规格</span>
                </div>
                <div class="price">1.6到手价</div>
              </div>
            </div>
          </div>
        </van-tab>
        <van-tab title="评价">
          <div class="comment">
            <div class="comment_top">
              <span class="core">4.5</span>
              <div class="rate">
                <span>商家评分</span>
                <van-rate size="15" v-model="value" color="yellow" />
              </div>
              <div class="top_item">
                <span>口味</span>
                <span>4.6</span>
              </div>
              <div class="top_item">
                <span>包装</span>
                <span>4.6</span>
              </div>
              <div class="top_item">
                <span>配送满意度</span>
                <span>96%</span>
              </div>
            </div>
            <div class="comment_content">
              <div class="comment_tabs">
                <span class="active">外卖评价</span>
                <span>到店评价(3.7分)</span>
              </div>
              <div class="tags">
                <span class="active">全部 444</span>
                <span>最新</span>
                <span>好评 356</span>
                <span>差评 32</span>
                <span>有图 41</span>
                <span>味道赞 41</span>
              </div>
              <div class="comment_list">
                <div class="comment_item" v-for="(item, index) in 1" :key="index">
                  <div class="comment_item_top">
                    <div class="flex">
                      <img src="../assets/head.jpg" alt />
                      <div class="user">
                        <span>殊荣</span>
                        <span>2024.07.03</span>
                      </div>
                    </div>
                    <div class="comment_icon">
                        <van-icon name="ellipsis" />
                    </div>
                  </div>
                  <p>
                    <van-rate size="15" v-model="value" color="yellow" />
                    <span>非常满意</span>
                  </p>
                  <p>冰块很贴心，N次回购奥利奥大圣代了，爱了爱了</p>
                  <div class="comment_bottom">
                    <span>有用</span>
                    <span class="iconfont icon-zan"></span>
                  </div>
                </div>
                <div class="comment_item" v-for="(item, index) in 1" :key="index">
                  <div class="comment_item_top">
                    <div class="flex">
                      <img src="../assets/head.jpg" alt />
                      <div class="user">
                        <span>思雨</span>
                        <span>2024.07.01</span>
                      </div>
                    </div>
                    <div class="comment_icon">
                      <van-icon name="ellipsis" />
                    </div>
                  </div>
                  <p>
                    <van-rate size="15" v-model="value" color="yellow" />
                    <span>非常满意</span>
                  </p>
                  <p>一直都好喝</p>
                  <div class="comment_bottom">
                    <span>有用</span>
                    <span class="iconfont icon-zan"></span>
                  </div>
                </div>
                <div class="comment_item" v-for="(item, index) in 1" :key="index">
                  <div class="comment_item_top">
                    <div class="flex">
                      <img src="../assets/head.jpg" alt />
                      <div class="user">
                        <span>遗落眼泪</span>
                        <span>2024.06.25</span>
                      </div>
                    </div>
                    <div class="comment_icon">
                      <van-icon name="ellipsis" />
                    </div>
                  </div>
                  <p>
                    <van-rate size="15" v-model="value" color="yellow" />
                    <span>非常满意</span>
                  </p>
                  <p>特意加了冰块保证圣代不融化，十分贴心，好评！</p>
                  <div class="comment_bottom">
                    <span>有用</span>
                    <span class="iconfont icon-zan"></span>
                  </div>
                </div>
                <div class="comment_item" v-for="(item, index) in 1" :key="index">
                  <div class="comment_item_top">
                    <div class="flex">
                      <img src="../assets/head.jpg" alt />
                      <div class="user">
                        <span>匿名用户</span>
                        <span>2024.06.25</span>
                      </div>
                    </div>
                    <div class="comment_icon">
                      <van-icon name="ellipsis" />
                    </div>
                  </div>
                  <p>
                    <van-rate size="15" v-model="value" color="yellow" />
                    <span>一般</span>
                  </p>
                  <p>加了啵啵但是给了细吸管</p>
                  <div class="comment_bottom">
                    <span>有用</span>
                    <span class="iconfont icon-zan"></span>
                  </div>
                </div>
                <div class="comment_item" v-for="(item, index) in 1" :key="index">
                  <div class="comment_item_top">
                    <div class="flex">
                      <img src="../assets/head.jpg" alt />
                      <div class="user">
                        <span>放肆旅游</span>
                        <span>2024.06.15</span>
                      </div>
                    </div>
                    <div class="comment_icon">
                      <van-icon name="ellipsis" />
                    </div>
                  </div>
                  <p>
                    <van-rate size="15" v-model="value" color="yellow" />
                    <span>满意</span>
                  </p>
                  <p>好喝爱喝</p>
                  <div class="comment_bottom">
                    <span>有用</span>
                    <span class="iconfont icon-zan"></span>
                  </div>
                </div>
                <div class="comment_item" v-for="(item, index) in 1" :key="index">
                  <div class="comment_item_top">
                    <div class="flex">
                      <img src="../assets/head.jpg" alt />
                      <div class="user">
                        <span>再别</span>
                        <span>2024.07.05</span>
                      </div>
                    </div>
                    <div class="comment_icon">
                      <van-icon name="ellipsis" />
                    </div>
                  </div>
                  <p>
                    <van-rate size="15" v-model="value" color="yellow" />
                    <span>非常满意</span>
                  </p>
                  <p>选择种类多，食材也都货真价实，不愧是雪王</p>
                  <div class="comment_bottom">
                    <span>有用</span>
                    <span class="iconfont icon-zan"></span>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </van-tab>
        <van-tab title="商家">
          <div class="info">
            <div class="info_line">
              <div class="line_left">
                <van-icon name="location-o" />
                <span>云南省凌翔社区居委会长水航线集贸市场5号</span>
              </div>
              <div class="line_right">
                <van-icon name="phone-o" />
              </div>
            </div>
            <div class="info_line">
              <div class="line_left">
                <span class="iconfont icon-dianpu"></span>
                <span>到店吃</span>
              </div>
              <div class="line_right">
                <span>距您3.9km</span>
                <van-icon name="arrow" />
              </div>
            </div>
            <div class="info_line">
              <div class="line_left">
                <van-icon name="location-o" />
                <span>查看安全食品档案</span>
              </div>
              <div class="line_right">
                <van-icon name="arrow" />
              </div>
            </div>
            <div class="info_line">
              <div class="line_left">
                <van-icon name="location-o" />
                <span>查看商家青山档案</span>
              </div>
              <div class="line_right">
                <van-icon name="arrow" />
              </div>
            </div>
          </div>
          <div class="time">
            <span>配送时间：10:30-23:59</span>
          </div>
          <div class="server">
            <div class="server_time">
              <span>商家服务</span>
            </div>
            <div class="server_time1">
              <span>到店自取(享优惠)</span>
            </div>
          </div>
        </van-tab>
      </van-tabs>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      activeKey: 0,
      value: 4,
      //这部分每个系列再做内容
      side: [
        {
          name: "好运一夏"
        },
        {
          name: "雪王新品"
        },
        {
          name: "真爽果茶"
        },
        {
          name: "轻乳系列"
        },
        {
          name: "现煮奶茶"
        },
        {
          name: "甜蜜套餐"
        },
        {
          name: "鲜萃咖啡"
        },
        {
          name: "鲜冰激淋"
        }
      ]
    };
  }
};
</script>
<style>
* {
  padding: 0;
  margin: 0;
}
</style>

<style lang="scss" scoped>
.stop_detail {
  .top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;

    .top_left {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 30px;
      height: 30px;
      background: #ccc;
    }
    .pindan {
      font-size: 12px;
      border-radius: 16px;
      border: 1px solid #fff;
      padding: 0 6px;
      height: 20px;
      color: #fff;
    }
    .top_right {
      display: flex;
      align-items: center;
      span {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
        margin-left: 10px;
      }
    }
  }

  .banner {
    width: 100%;
    height: 186px;
    background: #ccc;
    border-radius: 8px;
    overflow: hidden;
    img {
      width: 100%;
      height: 100%;
    }
  }
  .stop_bg {
    padding: 0 10px;

    background: linear-gradient(to bottom, rgb(108, 10, 10), #fff);
  }

  .shop {
    padding: 10px;
    border-bottom: 10px solid #f6f6f6;

    .stop_top {
      display: flex;
      align-items: center;

      img {
        width: 70px;
        height: 70px;
        border-radius: 8px;
        margin-right: 8px;
      }

      .stop_list {
        display: flex;
        margin: 4px 0;

        .stop_item {
          display: flex;
          flex-direction: column;
          align-items: center;
          font-size: 13px;
          margin-right: 12px;

          span {
            &:first-child {
              color: #8d8d8d;
            }
            &:last-child {
              font-weight: 600;
              font-size: 12px;
            }
          }
        }
      }
    }

    .shop_bottom {
      margin: 2px 0 4px;

      span {
        font-size: 8px;
        padding: 2px;
        border: 1px solid #ec7688;
        border-radius: 4px;
        margin-right: 4px;
        color: #dd2f49;
      }
    }
    .tip {
      font-size: 10px;
      color: #8d8d8d;
    }
  }
  .list_wrapper {
    .item {
      display: flex;
      margin-bottom: 20px;
      img {
        width: 80px;
        height: 80px;
        margin-right: 10px;
      }
      .item_line {
        // margin: 8px 0;
        flex: 1;
        h3 {
          font-size: 16px;
        }
        .item_line_i {
          font-size: 10px;
        }
        .item_o {
          display: flex;
          justify-content: space-between;
          align-items: center;
          font-size: 14px;
          margin-top: 6px;
          .buy {
            background: red;
            color: #fff;
            padding: 4px 6px;
            border-radius: 16px;
            font-size: 12px;
          }
        }
        .price {
          color: red;
          font-size: 12px;
        }
      }
    }
  }
}
.van-sidebar-item--select::before {
  background: transparent;
}
.van-sidebar-item--select {
  color: red;
}
.tab1_list {
  display: flex;
}
.tab1_list_content {
  flex: 1;
  padding: 0 10px;
  height: 525px;
  overflow-y: scroll;
  img {
    width: 100%;
    border-radius: 8px;
  }
  .card_title {
    margin: 6px 0;
    font-size: 14px;
  }
}
.card_list_wrapper {
  padding: 10px 10px;
}
.info {
  padding: 0 10px;
}
.info_line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(152, 139, 139, 0.1);
}
.line_right {
  display: flex;
  align-items: center;
  span {
    margin-top: -2px;
  }
}
.time {
  padding: 16px 10px;
  font-size: 14px;
  border-top: 10px solid #f2eded;
  border-bottom: 10px solid #f2eded;
  span {
    &:first-child {
      display: inline-block;
      margin-top: 2px;
    }
  }
}
.server_time {
  padding: 16px 10px;
  font-size: 14px;
}
.server_time1 {
  padding: 0 10px 16px;
  font-size: 12px;
  margin-left: 10px;
}
.core {
  font-size: 22px;
  color: rgb(236, 61, 61);
}
.comment_top {
  display: flex;
  align-items: center;
  font-size: 14px;
  justify-content: space-between;
  padding: 10px;
  border-top: 10px solid #f2eded;
  border-bottom: 10px solid #f2eded;
}
.rate {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.top_item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 6px;
}
.comment_tabs {
  display: flex;

  font-size: 14px;

  overflow: hidden;
  span {
    flex: 1;
    padding: 6px 0;
    text-align: center;
    border: 1px solid #ccc;
    &:first-child {
      border: 1px solid #ccc;
      border-radius: 8px 0 0 8px;
    }
    &:last-child {
      border-radius: 0 8px 8px 0;
    }
  }
}
.active {
  background: yellow !important;
  border: none !important;
}
.comment_content {
  padding: 10px;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  span {
    display: inline-block;
    background: rgba(236, 237, 168, 0.731);
    font-size: 14px;
    margin-right: 6px;
    padding: 4px 6px;
    border-radius: 4px;
    margin-top: 8px;
  }
}
.flex{
    display: flex;
    align-items: center;
}
.comment_item{
    padding: 20px 0;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba($color: #a8a0a0, $alpha: 0.1);
    p{
    margin-bottom: 10px;
    font-size: 14px;
    span{
        margin-left: 4px;
    }
  }
}
.comment_item_top{
    display: flex;
  align-items: center;
  justify-content: space-between;
  img{
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 8px;
  }
  .user{
    display: flex;
    flex-direction: column;
    font-size: 13px;
    span{
        &:first-child{
            margin-bottom: 2px;
        }
        &:last-child{
            font-size: 12px;
        }
    }
  }

  
}
.comment_bottom{
    text-align: right;
    font-size: 14px;
    span{
        margin-left: 6px;
    }
}
</style>